//
//  TagZeroVC.swift
//  LJJCycleDemo
//
//  Created by liujunjie on 2019/1/31.
//  Copyright © 2019 junjie.liu. All rights reserved.
//

import UIKit

class TagZeroVC: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.view.backgroundColor = UIColor.white
        
        let scView : LJJCycleScrollView =  LJJCycleScrollView().ljjSetupMainView {
            return CGRect(x: 0, y: 20, width: self.view.frame.size.width, height: 200)
        }

        scView.ljjCycleScrollViewConfig{ (make) in
            make._imageArray = ["h1","h2","h3","h4"]
        }
        
        self.view.addSubview(scView)
        
        scView.getSelectedIndex{ (make) in
            print(make)
        }
    }
    
    deinit {
        print("122123")
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        self.dismiss(animated: true, completion: nil)
    }
}
